import { NAVIGATE_TYPE } from "@/const/widget";
// import { guide_option } from "@/pages/home/const/mask-guide";
import { ORDER_STATUS } from "@/pages/sp-order/const/order";

export const GRID_OPTION = [
  {
    imageUrl:
      "https://hyyxboss.oss-cn-shenzhen.aliyuncs.com/pub_merchant_wxapp/order_waitting.png",
    text: "待支付",
    isHot: false,
    navigateType: NAVIGATE_TYPE.SELF,
    path: "/pages/sp-order/pages/orderList/index?active=1", // 内链地址
    url: "", // 外链地址
    serviceChatUrl: "", //企业客服
    serviceChatID: "", //企业ID
  },
  {
    imageUrl:
      "https://hyyxboss.oss-cn-shenzhen.aliyuncs.com/pub_merchant_wxapp/order_underway.png",
    text: "进行中",
    orderStatus: ORDER_STATUS.UNDERWAY,
    isUseHot: true,
    isShowHot: false,
    navigateType: NAVIGATE_TYPE.SELF,
    path: "/pages/sp-order/pages/orderList/index?active=2", // 内链地址
    url: "", // 外链地址
    serviceChatUrl: "", //企业客服
    serviceChatID: "", //企业ID
  },
  {
    imageUrl:
      "https://hyyxboss.oss-cn-shenzhen.aliyuncs.com/pub_merchant_wxapp/order_finish.png",
    text: "已完成",
    isHot: false,
    navigateType: NAVIGATE_TYPE.SELF,
    path: "/pages/sp-order/pages/orderList/index?active=3", // 内链地址
    url: "", // 外链地址
    serviceChatUrl: "", //企业客服
    serviceChatID: "", //企业ID
  },
  {
    imageUrl:
      "https://hyyxboss.oss-cn-shenzhen.aliyuncs.com/pub_merchant_wxapp/order_return.png",
    text: "已退款",
    isHot: false,
    navigateType: NAVIGATE_TYPE.SELF,
    path: "/pages/sp-order/pages/orderList/index?active=4", // 内链地址
    url: "", // 外链地址
    serviceChatUrl: "", //企业客服
    serviceChatID: "", //企业ID
  },
];

export const handleSolveClassifyGrid = (guide_option = {}, type = "base") => {
  const config = [
    {
      text: "基础工具",
      type: "base",
      list: [
        {
          imageUrl:
            "https://hyyxboss.oss-cn-shenzhen.aliyuncs.com/pub_merchant_wxapp/scan.png",
          text: "扫一扫",
          navigateType: NAVIGATE_TYPE.SELF,
          path: "/pages/scan/index", // 内链地址
          url: "", // 外链地址
          serviceChatUrl: "", //企业客服
          serviceChatID: "", //企业ID
        },
        {
          imageUrl:
            "https://hyyxboss.oss-cn-shenzhen.aliyuncs.com/pub_merchant_wxapp/goods_list.png",
          text: "商品列表",
          navigateType: NAVIGATE_TYPE.SELF,
          path: "/pages/sp-product/pages/productList/index", // 内链地址
          url: "", // 外链地址
          serviceChatUrl: "", //企业客服
          serviceChatID: "", //企业ID
          guide_option: guide_option?.productList_guide,
        },
        {
          imageUrl:
            "https://hyyxboss.oss-cn-shenzhen.aliyuncs.com/pub_merchant_wxapp/good_cate.png",
          text: "商品分类",
          navigateType: NAVIGATE_TYPE.SELF,
          path: "/pages/sp-product/pages/productClass/index", // 内链地址
          url: "", // 外链地址
          serviceChatUrl: "", //企业客服
          serviceChatID: "", //企业ID
        },
        {
          imageUrl:
            "https://hyyxboss.oss-cn-shenzhen.aliyuncs.com/pub_merchant_wxapp/member_manager.png",
          text: "会员管理",
          navigateType: NAVIGATE_TYPE.SELF,
          path: "/pages/sp-member/pages/memberList/index", // 内链地址
          url: "", // 外链地址
          serviceChatUrl: "", //企业客服
          serviceChatID: "", //企业ID
        },
      ],
    },
    {
      text: "门店管理",
      type: "shopManager",
      list: [
        {
          imageUrl:
            "https://hyyxboss.oss-cn-shenzhen.aliyuncs.com/pub_merchant_wxapp/shop_manager.png",
          text: "门店管理",
          navigateType: NAVIGATE_TYPE.SELF,
          path: "/pages/sp-store/pages/storeList/index", // 内链地址
          url: "", // 外链地址
          serviceChatUrl: "", //企业客服
          serviceChatID: "", //企业ID
          guide_option: guide_option?.storeList_guide,
        },
        {
          imageUrl:
            "https://hyyxboss.oss-cn-shenzhen.aliyuncs.com/pub_merchant_wxapp/device_manager.png",
          text: "设备管理",
          navigateType: NAVIGATE_TYPE.SELF,
          path: "/pages/sp-equi/pages/equiList/index", // 内链地址
          url: "", // 外链地址
          serviceChatUrl: "", //企业客服
          serviceChatID: "", //企业ID
        },
        {
          imageUrl:
            "https://hyyxboss.oss-cn-shenzhen.aliyuncs.com/pub_merchant_wxapp/table_manager.png",
          text: "桌码管理",
          navigateType: NAVIGATE_TYPE.SELF,
          path: "/pages/sp-product/pages/deskManage/index", // 内链地址
          url: "", // 外链地址
          serviceChatUrl: "", //企业客服
          serviceChatID: "", //企业ID
        },
      ],
    },
  ];
  return config.filter((v) => v.type === type);
};

// export const CLASSIFY_GRID_OPTION = [
//   {
//     text: "基础工具",
//     list: [
//       {
//         imageUrl:
//           "https://hyyxboss.oss-cn-shenzhen.aliyuncs.com/business/3384/20230131/1c6d8f2f-72e8-4a88-b119-72bc9ea7e153.png",
//         text: "商品列表",
//         navigateType: NAVIGATE_TYPE.SELF,
//         path: "/pages/sp-product/pages/productList/index", // 内链地址
//         url: "", // 外链地址
//         serviceChatUrl: "", //企业客服
//         serviceChatID: "", //企业ID
//         guide_option: guide_option?.productList_guide,
//       },
//       {
//         imageUrl:
//           "https://hyyxboss.oss-cn-shenzhen.aliyuncs.com/business/3384/20230131/1c6d8f2f-72e8-4a88-b119-72bc9ea7e153.png",
//         text: "商品分类",
//         navigateType: NAVIGATE_TYPE.SELF,
//         path: "/pages/sp-product/pages/productClass/index", // 内链地址
//         url: "", // 外链地址
//         serviceChatUrl: "", //企业客服
//         serviceChatID: "", //企业ID
//       },
//       {
//         imageUrl:
//           "https://hyyxboss.oss-cn-shenzhen.aliyuncs.com/business/3384/20230131/1c6d8f2f-72e8-4a88-b119-72bc9ea7e153.png",
//         text: "会员管理",
//         navigateType: NAVIGATE_TYPE.SELF,
//         path: "/pages/sp-member/pages/memberList/index", // 内链地址
//         url: "", // 外链地址
//         serviceChatUrl: "", //企业客服
//         serviceChatID: "", //企业ID
//       },
//     ],
//   },
//   {
//     text: "门店管理",
//     list: [
//       {
//         imageUrl:
//           "https://hyyxboss.oss-cn-shenzhen.aliyuncs.com/business/3384/20230131/1c6d8f2f-72e8-4a88-b119-72bc9ea7e153.png",
//         text: "门店管理",
//         navigateType: NAVIGATE_TYPE.SELF,
//         path: "/pages/sp-store/pages/storeList/index", // 内链地址
//         url: "", // 外链地址
//         serviceChatUrl: "", //企业客服
//         serviceChatID: "", //企业ID
//         guide_option: guide_option?.storeList_guide,
//       },
//       {
//         imageUrl:
//           "https://hyyxboss.oss-cn-shenzhen.aliyuncs.com/business/3384/20230131/1c6d8f2f-72e8-4a88-b119-72bc9ea7e153.png",
//         text: "设备管理",
//         navigateType: NAVIGATE_TYPE.SELF,
//         path: "/pages/sp-equi/pages/equiList/index", // 内链地址
//         url: "", // 外链地址
//         serviceChatUrl: "", //企业客服
//         serviceChatID: "", //企业ID
//       },
//       {
//         imageUrl:
//           "https://hyyxboss.oss-cn-shenzhen.aliyuncs.com/business/3384/20230131/1c6d8f2f-72e8-4a88-b119-72bc9ea7e153.png",
//         text: "桌码管理",
//         navigateType: NAVIGATE_TYPE.SELF,
//         path: "/pages/sp-product/pages/deskManage/index", // 内链地址
//         url: "", // 外链地址
//         serviceChatUrl: "", //企业客服
//         serviceChatID: "", //企业ID
//       },
//     ],
//   },
// ];
